<script type="text/javascript" src="http://vxjs.googlecode.com/svn/trunk/lib/vx.all.js"></script>
<script type="text/javascript" src="vx.util.js"></script>
<script type="text/javascript" src="vx.validation.js"></script>
<script type="text/javascript">
_.R(function(){
  _.validate(_.G("testform"));
})
</script>

<style>
input.fail {
  border-color:red;
  border-style:dotted; 
}
</style>

<form id="testform">
  <input type="text" name="poop" class="required"><br>
  <input type="text" name="poop3" class="number"><br>
  <input type="text" name="poop2" class="integer"><br>
  <input type="text" name="poop5" class="url"><br>
  <input type="submit">
</form>